<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>大气污染物可视化</title>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css"/>
    <style>
        html, body, #container {
            height: 100%;
            width: 100%;
        }

        .input-card .btn {
            margin-right: 1.2rem;
            width: 9rem;
        }

        .input-card .btn:last-child {
            margin-right: 0;
        }
    </style>
</head>
<body>
<div id="container" class="map" tabindex="0"></div>
<script type="text/javascript" src='https://a.amap.com/jsapi_demos/static/citys.js'></script>
<script type="text/javascript"
        src="https://webapi.amap.com/maps?v=1.4.15&key=607ac72a39598438bed099eb434a606b"></script>
<script type="text/javascript">
    var map = new AMap.Map('container', {
        zoom: 4,
        center: [102.342785, 35.312316]
    });

    var style = [{
        url: 'https://a.amap.com/jsapi_demos/static/images/mass0.png',
        anchor: new AMap.Pixel(6, 6),
        size: new AMap.Size(11, 11)
    }, {
        url: 'https://a.amap.com/jsapi_demos/static/images/mass1.png',
        anchor: new AMap.Pixel(4, 4),
        size: new AMap.Size(7, 7)
    }, {
        url: 'https://a.amap.com/jsapi_demos/static/images/mass2.png',
        anchor: new AMap.Pixel(3, 3),
        size: new AMap.Size(5, 5)
    }
    ];

    var mass = new AMap.MassMarks(citys, {
        opacity: 0.8,
        zIndex: 111,
        cursor: 'pointer',
        style: style
    });

    var marker = new AMap.Marker({content: ' ', map: map});

    mass.on('click', function (e) {
        var city = e.data.name;
        if(city.indexOf("市")!=-1){
            city = city.replace('市','');
        }
        else if(city.indexOf("县")!=-1){
            city = city.replace('县','');
        }
        var data = getData(city);
        var contents="";
        if(data==null){
            alert("暂无该城市无数据！")
        }
        else{sendRequest(e.data.name)}
    });

    function sendRequest(city){//在这里实现对数据库的数据请求，name是地名，需要转换
        location.href="DataProcessWin.html?"+"txt="+encodeURI(encodeURI(city));
    }

    mass.on('mouseover', function (e) {
        marker.setPosition(e.data.lnglat);
        var city = e.data.name;
        if(city.indexOf("市")!=-1){
            city = city.replace('市','');
        }
        else if(city.indexOf("县")!=-1){
            city = city.replace('县','');
        }
        var data = getData(city);
        var contents="";
        if(data==null){
            contents=e.data.name+"<br>该城市无数据";
        }
        else{
            contents=e.data.name+"<br>AQI:"+data[1]+"<br>PM2.5:"+data[2]+"<br>PM10:"+data[3]+"<br>SO2:"+data[4]+"<br>NO2:"+data[5]+"<br>O3:"+data[6]+"<br>CO:"+data[7];
        }
        //alert(e.data.name+" "+cont);
        marker.setLabel({
            offset: new AMap.Pixel(15, 15),
            //content: e.data.name+"<br>AQI:"+"<br>PM2.5:"+"<br>PM10:"+"<br>SO2:"+"<br>NO2:"+"<br>O3:"+"<br>CO:"
            content:contents
        })
    });

    function getData(name){
        var date = new Date();
        var day = date.getFullYear() +appendZero(date.getMonth() + 1) +appendZero(date.getDate());
        var hour = date.getHours()-1;//最近一个小时的数据
        var array =[["北京",42,7,42,3,5,84,0.21],["天津",44,16,44,5,16,75,0.37], ["石家庄",88,27,125,6,12,73,0.35], ["唐山",72,41,93,10,32,55,0.65], ["秦皇岛",69,45,87,17,40,49,1.44], ["邯郸",107,55,164,15,25,62,0.8],["保定",77,19,103,4,12,81,0.19],["张家口",36,11,36,6,9,91,0.4],["承德",53,16,55,5,8,92,0.53],["廊坊",55,13,59,5,8,90,0.23], ["沧州",67,47,84,12,26,56,0.67], ["衡水",84,47,117,14,22,59,0.47],["邢台",92,35,134,10,24,56,0.57],["太原",102,41,153,6,13,73,0.41],["呼和浩特",60,20,70,7,9,87,0.32],["沈阳",56,38,61,11,35,54,0.7], ["大连",33,23,32,6,30,71,0.65],["长春",50,35,45,6,27,60,0.61],["哈尔滨",66,30,81,12,24,62,0.66],["上海",20,14,19,5,25,48,0.61],["南京",18,11,18,3,15,45,0.76],["苏州",30,21,26,5,23,40,0.72],["南通",34,24,23,6,28,36,0.6],["连云港",43,25,43,7,19,75,0.97],["徐州",85,63,82,7,20,63,0.85],["扬州",30,21,28,5,30,22,0.68],["无锡",25,16,25,4,19,46,0.56],["常州",41,22,41,6,28,33,0.66],["镇江",37,26,30,5,16,31,0.72], ["泰州",29,20,24,4,24,21,0.82], ["淮安",64,46,35,4,18,42,0.63], ["盐城",49,34,48,4,27,36,0.65],["宿迁",67,42,83,6,17,43,0.85],            ["杭州",38,20,38,4,26,30,0.63],            ["宁波",20,9,19,6,14,64,0.5], ["温州",76,45,102,5,47,25,0.7],["绍兴",26,13,26,5,16,46,0.5],            ["湖州",39,18,39,5,33,23,0.57],            ["嘉兴",45,22,45,6,30,35,0.65],            ["台州",27,14,27,4,12,70,0.23],            ["舟山",20,9,16,4,6,63,0.47],            ["金华",29,20,20,4,15,39,0.53],            ["衢州",26,14,26,6,32,21,0.63],            ["丽水",44,29,44,5,25,17,0.53],            ["合肥",24,17,23,5,15,62,0.67],            ["福州",59,42,60,6,30,28,0.92],            ["厦门",49,34,38,6,36,20,0.66],            ["南昌",18,8,8,4,7,58,0.65],            ["济南",89,66,108,10,33,66,1.11],            ["青岛",23,16,21,5,25,58,0.47],            ["郑州",100,25,149,10,25,62,0.64],            ["武汉",37,26,36,7,18,72,0.64],            ["长沙",51,36,38,7,12,62,0.72],            ["广州",42,18,42,8,32,22,0.67],            ["深圳",34,14,34,5,20,37,0.58],            ["珠海",32,14,32,5,16,31,0.57],            ["佛山",39,17,39,6,27,20,0.65],            ["中山",27,11,27,4,14,28,0.65],            ["江门",31,13,31,5,16,33,0.58],            ["东莞",37,15,37,7,25,30,0.6],            ["惠州",47,20,47,9,17,42,0.5],            ["肇庆",32,15,32,17,28,22,0.68],            ["南宁",30,15,30,7,16,31,0.55],            ["海口",26,10,26,3,9,38,0.48],            ["重庆",48,32,48,11,27,27,0.7],            ["成都",56,30,62,5,26,45,0.57],            ["贵阳",37,26,37,6,16,59,0.74],            ["昆明",46,26,46,13,22,97,0.8],            ["拉萨",28,6,14,5,19,88,0.48],            ["西安",99,22,147,7,36,35,0.58],           ["兰州",111,48,171,10,22,74,0.35],            ["西宁",86,37,122,10,20,80,0.53],            ["银川",73,29,95,14,21,64,0.58],            ["乌鲁木齐",100,27,149,5,31,62,0.55],            ["湘潭",69,50,29,4,13,60,0.65],            ["株洲",49,34,26,5,16,65,0.6],            ["包头",117,56,183,28,25,61,1.25],            ["鄂尔多斯",145,44,240,6,8,87,0.54],            ["营口",41,23,41,6,28,96,0.7],            ["丹东",30,17,30,7,17,84,0.55],            ["盘锦",44,31,23,7,20,85,0.7],            ["葫芦岛",41,29,31,6,14,82,0.53],            ["泉州",64,46,65,22,45,25,0.75],            ["临沂",44,31,41,4,22,48,0.9],            ["德州",84,62,118,13,27,53,1.08],            ["聊城",99,74,114,24,26,46,0.7],            ["滨州",100,75,101,16,21,58,1.18],           ["淄博",179,135,171,23,43,45,2.3],            ["枣庄",70,51,77,10,13,90,0.7],            ["烟台",31,20,23,8,31,100,0.57],            ["潍坊",125,95,164,7,28,54,0.85],            ["济宁",84,62,83,12,21,68,1.15],            ["泰安",73,34,95,10,23,99,0.58],            ["日照",33,23,28,5,16,75,1.38],            ["威海",33,14,17,3,11,107,0.48],            ["东营",100,75,81,11,20,56,0.95],            ["韶关",22,14,22,8,20,28,0.68],            ["汕头",41,25,41,7,16,64,0.64],            ["湛江",26,18,24,7,9,46,0.6],            ["茂名",24,13,24,5,6,51,0.52],            ["梅州",28,15,28,6,21,33,0.77],            ["汕尾",42,17,42,7,9,54,0.6],            ["河源",42,18,42,8,14,41,0.7],            ["阳江",18,6,15,4,3,59,0.57],            ["清远",33,19,33,5,34,13,1],            ["潮州",44,17,44,13,18,52,0.9],            ["揭阳",60,39,70,9,23,40,0.86],            ["云浮",22,15,22,7,14,33,0.7],            ["玉溪",46,20,46,13,31,63,1.27],            ["菏泽",88,65,97,13,23,51,0.65],            ["大同",65,27,79,8,7,92,0.38],            ["长治",103,55,156,14,25,72,0.6],            ["临汾",127,59,204,4,13,75,0.4],            ["阳泉",95,42,140,5,12,83,0.38],            ["赤峰",43,10,43,7,10,87,0.34],            ["鞍山",49,26,49,6,23,77,0.97],            ["抚顺",51,36,39,11,34,63,0.83],            ["本溪",25,15,25,10,24,77,0.78],            ["锦州",58,41,36,14,28,62,0.76],            ["吉林",33,20,33,7,17,89,0.58],            ["齐齐哈尔",49,11,49,4,10,76,0.42],            ["牡丹江",42,26,42,6,26,77,0.4],            ["大庆",43,11,43,6,8,80,0.45],            ["芜湖",16,11,16,5,14,49,0.8],            ["马鞍山",20,14,17,9,21,34,1],            ["九江",25,13,25,5,16,47,0.7],            ["洛阳",106,42,162,9,25,56,0.61],            ["安阳",105,38,159,20,33,47,1.18],            ["开封",73,40,95,16,26,51,1.25],            ["焦作",108,39,165,22,31,55,0.8],            ["平顶山",82,34,114,14,20,73,0.65],            ["三门峡",126,24,202,7,22,63,0.47],            ["宜昌",33,23,33,7,19,24,0.8],            ["荆州",52,25,54,6,18,33,0.77],            ["岳阳",30,21,30,8,14,75,0.63],            ["常德",31,22,31,9,13,50,0.8],            ["张家界",29,20,25,2,12,39,0.87],            ["桂林",28,5,4,5,13,90,0.74],            ["北海",25,14,25,7,8,40,0.48],            ["柳州",28,11,20,6,12,89,0.71],            ["三亚",30,21,28,4,9,33,0.5],            ["绵阳",67,25,84,8,37,40,0.58],            ["宜宾",24,12,17,6,10,77,0.66],            ["攀枝花",51,34,52,23,35,62,0.95],            ["泸州",50,35,36,11,30,23,0.88],            ["自贡",52,31,54,6,8,75,0.33],            ["德阳",64,30,78,8,42,32,0.5],            ["南充",64,39,78,5,17,53,0.53],            ["遵义",31,20,31,9,20,50,0.53],            ["曲靖",49,32,49,36,32,70,0.93],            ["咸阳",97,28,143,8,24,57,0.38],            ["铜川",98,39,146,22,27,43,0.47],            ["延安",135,56,219,3,11,77,0.27],            ["宝鸡",81,30,111,6,24,28,0.47],            ["渭南",82,38,113,15,44,29,0.67],            ["金昌",76,19,101,3,10,79,0.45],            ["嘉峪关",45,12,45,8,13,86,0.3],            ["石嘴山",51,27,51,6,8,92,0.33],            ["克拉玛依",39,10,39,6,35,37,0.58],            ["巴音郭楞州",106,59,161,5,10,88,0.37],            ["寿光",138,105,131,25,29,45,1.1],            ["章丘",95,71,125,7,40,64,1.4],            ["即墨",20,14,19,6,17,64,0.6],            ["胶南",29,20,19,7,23,62,0.55],            ["胶州",21,12,17,3,14,68,0.45],            ["莱西",25,13,13,8,11,79,0.45],            ["平度",25,15,18,5,13,79,0.65],            ["蓬莱",0,0,0,0,0,0,0],            ["招远",26,18,24,17,22,80,0.6],            ["莱州",46,32,36,9,13,76,0.7],            ["荣成",29,20,24,5,19,56,0.65],            ["文登",29,14,9,4,17,93,0.6],            ["乳山",26,11,9,6,16,82,0.9],            ["吴江",31,22,28,6,25,43,0.65],            ["昆山",32,15,32,6,17,53,0.5],            ["常熟",30,16,30,6,28,44,0.6],            ["张家港",33,21,33,6,22,40,0.55],            ["太仓",30,15,30,5,20,47,0.3],            ["句容",19,7,13,4,11,62,1],            ["江阴",31,15,31,6,31,36,0.7],            ["宜兴",29,19,29,12,29,24,0.8],            ["金坛",32,18,32,8,18,33,0.9],            ["溧阳",19,10,19,6,11,47,0.85],            ["海门",26,18,23,5,25,52,0.55],            ["临安",22,14,22,5,20,44,0.7],            ["富阳",54,16,57,5,26,19,0.7],            ["义乌",30,16,30,3,23,28,0.5],            ["诸暨",22,9,22,6,14,31,0.75],            ["瓦房店",0,0,0,0,0,0,0],            ["信阳",51,32,51,7,16,61,0.5],            ["周口",69,50,69,8,17,54,0.93],            ["漳州",44,31,39,3,26,19,0.73],            ["晋城",106,41,162,4,13,85,0.4],            ["朔州",107,29,164,5,7,93,0.35],            ["晋中",120,42,190,8,19,61,0.5],            ["运城",109,56,167,9,17,69,0.48],            ["忻州",100,59,150,9,6,78,0.4],            ["吕梁",138,39,225,13,11,66,0.33],            ["乌海",55,15,60,8,3,86,0.38],            ["通辽",26,10,21,4,14,83,0.1],            ["呼伦贝尔",26,8,14,3,8,84,0.35],            ["巴彦淖尔",56,16,62,5,5,81,0.5],            ["乌兰察布",53,13,55,15,5,100,0.2],            ["兴安盟",26,10,26,2,9,79,0.27],            ["锡林郭勒盟",24,7,19,5,6,77,0.2],            ["阿拉善盟",44,15,44,5,4,96,0.4],            ["阜新",59,42,54,17,20,73,0.52],            ["辽阳",36,25,30,7,33,58,0.72],            ["铁岭",65,47,47,4,27,65,0.83],            ["朝阳",46,12,46,8,11,77,0.4],            ["四平",42,20,42,7,22,72,0.53],            ["辽源",32,13,26,6,9,102,0.85],            ["通化",26,1,14,13,24,82,0.5],            ["白山",28,15,26,8,12,90,0.45],            ["松原",40,5,40,4,7,74,0.3],            ["白城",26,9,21,7,11,83,0.15],            ["延边朝鲜族自治州",50,35,49,10,28,39,0.7],            ["鸡西",35,19,35,7,30,62,0.45],            ["鹤岗",52,18,54,6,12,72,0.3],            ["双鸭山",30,13,30,4,13,74,0.23],            ["伊春",38,17,38,14,13,78,0.57],            ["佳木斯",43,19,43,6,20,69,0.47],            ["七台河",45,15,45,9,19,86,0.37],            ["黑河",27,16,23,4,9,85,0.25],            ["绥化",90,39,129,7,19,50,0.55],            ["大兴安岭地区",76,56,78,7,12,93,0.55],            ["蚌埠",54,38,42,9,14,62,0.85],            ["淮南",55,39,52,6,14,58,0.73],            ["淮北",83,61,76,3,9,77,0.7],            ["铜陵",22,9,22,10,20,63,0.82],            ["安庆",16,7,16,4,19,42,0.72],            ["黄山",19,9,19,5,9,33,0.47],            ["滁州",17,9,13,6,11,55,0.77],            ["阜阳",58,41,58,5,14,69,0.6],            ["宿州",86,64,84,6,13,76,0.5],            ["六安",49,30,49,5,13,71,0.6],            ["亳州",98,73,103,7,16,67,0.57],            ["池州",23,5,10,4,14,74,0.75],            ["宣城",18,4,12,8,10,58,0.7],            ["莆田",64,46,74,6,21,37,0.8],            ["三明",55,39,53,12,26,17,1.27],            ["南平",21,15,20,5,8,37,0.6],            ["龙岩",23,14,23,6,23,18,0.83],            ["宁德",79,58,58,4,17,40,0.8],            ["景德镇",30,15,30,9,17,47,0.88],            ["萍乡",26,17,26,12,13,46,1.13],            ["新余",26,16,26,7,14,48,0.65],            ["鹰潭",14,4,14,7,8,35,0.32],            ["赣州",32,15,32,11,11,33,0.88],            ["吉安",29,13,29,8,11,35,0.53],            ["宜春",25,17,25,9,18,37,1.15],            ["抚州",22,9,22,12,15,26,0.55],            ["上饶",15,9,15,9,17,29,0.55],            ["鹤壁",117,79,184,30,42,36,2.26],            ["新乡",106,80,141,19,46,24,1.5],            ["濮阳",75,48,100,22,32,38,0.82],            ["许昌",77,32,104,11,36,37,1.04],            ["漯河",72,49,93,13,31,31,0.97],            ["南阳",65,35,80,7,34,17,0.98],            ["商丘",58,41,62,7,19,59,0.75],            ["驻马店",67,48,84,14,24,44,0.67],            ["黄石",33,19,33,19,21,68,1.3],            ["十堰",53,24,55,5,19,34,0.63],            ["襄阳",54,35,58,11,26,27,0.77],            ["鄂州",31,22,28,6,15,86,0.8],            ["荆门",43,30,43,3,25,32,0.98],            ["孝感",44,31,42,6,10,65,0.85],            ["黄冈",29,17,21,8,7,93,0.67],            ["咸宁",31,22,31,7,7,50,0.5],            ["随州",42,20,42,9,14,56,0.7],            ["恩施土家族苗族自治州",31,11,31,8,15,29,0.9],            ["衡阳",28,18,18,6,9,91,0.58],            ["邵阳",31,12,27,9,8,99,0.57],            ["益阳",44,31,37,3,9,62,0.82],            ["郴州",23,7,14,4,7,75,0.5],            ["永州",27,13,15,5,10,85,0.75],            ["怀化",22,14,22,8,5,68,0.95],            ["娄底",30,20,30,6,15,78,0.8],            ["湘西州",20,7,17,11,8,64,0.65],            ["梧州",52,18,53,12,33,12,0.95],            ["防城港",35,10,35,11,13,44,0.6],            ["钦州",30,18,30,6,13,27,1.18],            ["贵港",31,22,26,6,21,19,0.78],            ["玉林",30,21,26,12,13,32,0.68],            ["百色",54,28,57,32,17,39,0.97],            ["贺州",35,17,31,6,9,111,0.4],            ["河池",33,8,9,7,11,104,0.5],            ["来宾",31,19,31,10,11,33,0.7],            ["崇左",44,31,39,15,20,21,0.55],            ["广元",88,41,125,3,16,80,0.3],            ["遂宁",59,27,68,11,19,47,0.4],            ["内江",58,41,60,6,14,67,0.53],            ["乐山",33,17,33,6,15,69,0.53],            ["眉山",46,22,46,9,17,72,0.5],            ["广安",56,26,62,6,28,24,0.68],            ["达州",70,32,90,11,49,28,0.73],            ["雅安",38,23,38,6,13,71,0.4],            ["巴中",88,41,126,5,35,21,0.73],            ["资阳",62,30,73,6,17,74,0.43],            ["阿坝藏族羌族自治州",25,17,25,14,7,39,0.4],            ["甘孜州",0,0,0,0,0,0,0],            ["甘孜藏族自治州",31,3,6,9,7,98,0.35],            ["凉山彝族自治州",42,26,42,16,25,37,0.77],            ["六盘水",29,18,27,4,8,93,0.5],            ["安顺",39,27,34,6,9,99,0.53],            ["铜仁地区",21,9,16,11,9,66,0.3],            ["毕节",34,24,32,6,10,110,0.5],            ["黔西南布依族苗族自治州",45,22,45,39,25,54,0.45],            ["黔东南苗族侗族自治州",21,14,21,3,18,64,0.45],            ["黔东南州",0,0,0,0,0,0,0],            ["黔南布依族苗族自治州",16,10,13,5,5,50,1.05],            ["保山",46,32,41,4,29,55,0.7],            ["昭通",38,24,38,5,7,110,0.25],            ["丽江",33,15,24,7,17,105,0.65],            ["普洱",37,19,37,7,29,43,0.4],            ["临沧",45,25,45,15,20,42,0.95],            ["楚雄州",36,25,36,12,28,75,0.8],            ["红河州",33,21,33,9,11,89,0.43],            ["文山州",30,21,23,5,14,76,0.5],            ["西双版纳州",42,16,42,9,23,20,0.65],            ["大理州",34,24,34,7,14,96,0.7],            ["德宏州",54,38,55,4,32,32,0.7],            ["怒江州",61,40,72,8,31,42,1.05],            ["迪庆州",36,25,25,16,16,83,0.85],            ["昌都",19,11,18,8,5,60,0.45],            ["山南",33,6,9,6,17,107,0.5],            ["日喀则",36,5,12,5,7,115,0.55],            ["那曲地区",98,73,90,10,25,32,1.4],            ["那曲",0,0,0,0,0,0,0],            ["阿里地区",37,11,37,12,20,67,0.45],            ["林芝",16,10,16,12,12,50,0.65],            ["汉中",70,34,90,6,21,35,0.77],            ["榆林",122,71,194,6,10,79,0.37],            ["安康",36,25,36,17,19,10,0.6],            ["商洛",88,45,125,6,27,58,0.35],            ["白银",112,49,173,6,10,85,0.4],            ["天水",84,29,118,7,7,94,0.35],            ["武威",151,63,251,5,19,70,0.35],            ["张掖",71,40,92,11,22,53,0.35],            ["平凉",108,31,165,2,11,93,0.2],            ["酒泉",91,24,131,6,37,39,0.55],            ["庆阳",136,62,221,7,12,73,0.55],            ["定西",95,29,140,5,8,101,0.2],            ["陇南",44,31,27,16,23,50,0.4],            ["临夏回族自治州",83,26,116,6,21,80,0.3],            ["甘南州",64,18,78,9,12,78,0.4],            ["海东地区",0,0,0,0,0,0,0],            ["海北藏族自治州",67,29,84,18,12,88,0.7],["黄南藏族自治州",64,34,77,9,6,83,0.7],["海南藏族自治州",69,39,88,16,9,85,0.6],["果洛藏族自治州",76,32,101,143,46,8,0.7],["玉树藏族自治州",54,20,57,18,14,32,0.5],["海西蒙古族藏族自治州",32,14,32,15,24,77,0.5],["吴忠",70,41,90,16,13,77,0.37],["中卫",141,64,231,10,7,89,0.3],["固原",95,31,140,5,9,93,0.3],["吐鲁番地区",137,67,223,11,37,44,0.85],["哈密地区",58,16,65,3,47,47,0.5],["昌吉州",83,21,115,5,29,67,0.5],["博尔塔拉蒙古自治州",70,17,90,7,18,36,0.2],["阿克苏地区",376,158,481,5,18,75,0.2],["克孜勒苏柯尔克孜自治州",500,308,1026,5,3,81,0.25],["喀什地区",500,446,1331,3,8,81,0.5],["和田地区",500,648,2019,9,9,70,0.55],["伊犁哈萨克州",47,19,47,7,19,49,0.63],["塔城地区",32,15,32,4,14,34,0.2],["阿勒泰地区",24,6,10,3,6,77,0],["石河子",64,27,78,6,49,24,0.85],["五家渠",77,31,104,6,39,19,0.9],["三沙",0,0,0,0,0,0,0],["兰州新区",134,48,218,9,8,91,0.4],["赣江新区",19,8,16,2,6,62,0.9],["儋州",27,11,27,19,12,41,0.5],["雄安新区",94,15,137,7,15,69,0.27],["西咸新区",103,22,155,8,22,50,0.67]
        ];
        for(var i = 0;i<array.length;i++){
            if(array[i][0]===name){
                return array[i];
            }
        }
        return null;
    }

    function appendZero (obj) {//个无数补0
        if (obj < 10) {
            return '0' + obj
        } else {
            return obj
        }
    }
    mass.setMap(map);
</script>
</body>
</html>